package com.ushine.design.design.c_behavioral_pattern.e_mediator.a_practice;

import java.util.ArrayList;

public abstract class Mediator {
    protected ArrayList<Colleague> colleagues = new ArrayList<>();//用于存储同事对象

    //注册方法
    public void register(Colleague colleague) {
        colleagues.add(colleague);
    }

    //业务方法
    public abstract void operation();

}
